<%@ page language="java" pageEncoding="UTF-8"%>
<script>
	//查询功能
	function searchOperateLog() {
		$("#user-operateLog-list-dg").datagrid("options").queryParams = getQueryParams("user-operateLog-search");
		autoLoad($("#user-operateLog-list-dg").datagrid("getPager"), 1);
	}
	
	$(function() {
		$('#user-operateLog-list-dg').datagrid({
			url : "${pageContext.request.contextPath }/operatelogAction!getOperateLog.action",
			onLoadError : function(retValue) {
				eval(retValue.responseText);
			},
			singleSelect : true,
			pagination : true,
			fitColumns : true,
			pageSize : 10,
			pageList : [ 5, 10, 15, 20 ],
			nowrap : true,
			border : false,
			idField : 'id',
			columns : [ [ {
				field : 'user',
				title : '用户名',
				width : 150
			}, {
				field : 'operateType',
				title : '操作类型',
				width : 100
			}, {
				field : 'object',
				title : '操作对象',
				width : 100
			}, {
				field : 'ip',
				title : 'ip',
				width : 100
			}, {
				field : 'operateTime',
				title : '时间',
				width : 130
			}, {
				field : 'operate',
				title : '操作内容',
				width : 500
			} ] ]
		});
	});
</script>
<div class="easyui-layout" data-options="fit:true">

	<div data-options="region:'north', title:'查询', iconCls: 'icon-search'" style="height:80px; padding: 0;">
		<div style="padding-top: 10px; padding-left: 20px">
			<form id="user-operateLog-search">
				<span>开始时间：<input type="text" id="operate-log-srateDate" name="startDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"></span>&nbsp;&nbsp; 
				<span>结束时间：<input type="text" id="operate-log-endDate" name="endDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'operate-log-srateDate\')}'})"></span>&nbsp;&nbsp; 
				<span><a href="javascript:void(0)" class="easyui-linkbutton" onclick="searchOperateLog()" data-options="iconCls:'icon-search'">查询</a></span>
			</form>
		</div>
	</div>

	<div data-options="region:'center', title:'操作日志', iconCls: 'icon-group'" style="padding: 0;">
		<table id="user-operateLog-list-dg"></table>
	</div>

</div>